package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;

import java.util.Date;

//订单的业务层接口
public interface OrderService {

    //提交购物车
    void submitOrder(Order order);

    //查询历史订单
    Page<Order> findOldOrder(Integer pageNum, Integer pageSize);

    //管理端订单查询
    Page<Order> findByPage(Integer pageNum, Integer pageSize, String number, String beginTime, String endTime);
}
